package com.zhang.modules.api.entity;


import com.zhang.common.jpa.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@NoArgsConstructor
@Table(name="sys_acl_api_group")
public class ApiGroup extends BaseEntity {


    @Column(name = "name", nullable = false, length = 64)
    @ApiModelProperty("接口组名称")
    private String name;

    @Column(name = "pid")
    @ApiModelProperty("上级接口组id")
    private Long pid;
}
